package com.ChenYaRou.www.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

/**
 * @ClassName Notice
 * @Description TODO
 * @Author 86183
 * @Date 2022/4/29 19:59
 * @Version 1.0
 **/
public class Notice {
    private Integer id;
    /**
     * Notice的投诉内容固定格式:(只给管理员看)
     * 投诉类型:用户 投诉 商家/平台  ;  商家 投诉 用户/平台
     * 投诉人: name
     * 被投诉人: name /平台
     * 店铺: shopName 当被投诉人为平台时 此处不设置
     * 投诉原因:reason
     *
     * 管理员发送Notice给用户/商家:
     * 您好,(投诉人),您的投诉反馈:(投诉内容:原notice输出.)
     * 反馈内容
     *
     */
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime updateTime;

    private Boolean state;
    private Integer recipientId;

    public Notice() {
    }

    public Notice(String content, LocalDateTime updateTime, Boolean state,Integer recipientId) {
        this.content = content;
        this.updateTime = updateTime;
        this.state = state;
        this.recipientId = recipientId;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", updateTime=" + updateTime +
                ", state=" + state +
                ", recipientId=" + recipientId +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Integer getRecipientId() {
        return recipientId;
    }

    public void setRecipientId(Integer recipientId) {
        this.recipientId = recipientId;
    }
}
